/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Monitor API
 * 云托管服务的监控API
 *
 * OpenAPI spec version: v1
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;
using JDCloudSDK.Core.Service;

using JDCloudSDK.Core.Annotation;

namespace  JDCloudSDK.Jdccs.Apis
{

    /// <summary>
    ///  查看某资源单个监控项数据
    /// </summary>
    public class DescribeMetricDataRequest : JdcloudRequest
    {
        ///<summary>
        /// 资源ID
        ///Required:true
        ///</summary>
        [Required]
        public   string ResourceId{ get; set; }
        ///<summary>
        /// 查询时间范围的开始时间， UNIX时间戳，（机柜电流最多支持最近90天数据查询、带宽流量最多支持最近30天数据查询）
        ///Required:true
        ///</summary>
        [Required]
        public   int StartTime{ get; set; }
        ///<summary>
        /// 查询时间范围的结束时间， UNIX时间戳，（机柜电流最多支持最近90天数据查询、带宽流量最多支持最近30天数据查询）
        ///Required:true
        ///</summary>
        [Required]
        public   int EndTime{ get; set; }
        ///<summary>
        /// 时间间隔：分钟m、小时h、天d，如： 10分钟&#x3D;10m、1小时&#x3D;1h，3天&#x3D;3d；默认5m，最小支持5m，最大90d 目前带宽上、下行流量查询，时间间隔：1m、5m，默认5m。1m时间间隔支持的最大时间范围为2小时
        ///</summary>
        public   string TimeInterval{ get; set; }
        ///<summary>
        /// 交换机IP，指定ip时须同时指定port
        ///</summary>
        public   string Ip{ get; set; }
        ///<summary>
        /// 端口，指定port时须同时指定ip
        ///</summary>
        public   string Port{ get; set; }
        ///<summary>
        /// IDC机房ID
        ///Required:true
        ///</summary>
        [Required]
        public   string Idc{ get; set; }
        ///<summary>
        /// 监控项英文标识(id)
        ///Required:true
        ///</summary>
        [Required]
        public   string Metric{ get; set; }
    }
}